package cn.edu.fjnu.camera;

import cn.edu.fjnu.camera.R;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;

public class ImagePreview extends Activity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.imagepreview);
		
		Gallery gallery = (Gallery)findViewById(R.id.imagegallery);
		gallery.setAdapter(new ImageAdapter(this));
		
	}
	
	public class ImageAdapter extends BaseAdapter
	{
		private Context myContext;
		ImageAdapter(Context context)
		{
			myContext = context;
		}
		
		public int getCount()
		{
			return 0;//to be modify
		}
		
		public Object getItem(int position)
		{
			return position;
		}
		
		public long getItemId(int position)
		{
			return position;
		}
		
		public View getView(int position, View convertView, ViewGroup parent)
		{
			ImageView i = new ImageView(myContext);
			return i;
		}
		
		
	}
}
